﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PhanQuyenTrenTrang.aspx.cs" Inherits="ChamCong.Admin.PhanQuyenTrenTrang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function pageLoad() { 
        
        }
    </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div id="content-box">
        <div class="border">
            <div class="padding">
                
                <div id="element-box">
                    <div class="m">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                                <table cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                        <tr valign="top">
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                <asp:Panel ID="Panel1" runat="server" Width="400" ScrollBars="Auto">
                                                    <asp:TreeView ID="MenuTrai" runat="server" Target="_self" ShowCheckBoxes="All" 
                                                        onselectednodechanged="MenuTrai_SelectedNodeChanged" >
                                                        <SelectedNodeStyle ForeColor="#CC0000" Font-Size="10pt" Font-Bold="True"></SelectedNodeStyle>
                                                    </asp:TreeView>
                                                </asp:Panel>
                                            </td>
                                            <td style="width: 4px">
                                                &nbsp;
                                            </td>
                                            <td>
                                                <table border="0">
                                                    <tbody>
                                                        <tr>
                                                            <td colspan="2">
                                                                <asp:RadioButtonList ID="rdbMenu" runat="server" AutoPostBack="True"
                                                                    RepeatDirection="Horizontal" 
                                                                    onselectedindexchanged="rdbMenu_SelectedIndexChanged" Height="26px">
                                                                    <asp:ListItem Value="2">Thông tin trang</asp:ListItem>
                                                                    <asp:ListItem Value="0" >Quản lý role</asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </td>
                                                        </tr>
                                                        <asp:Panel ID="pnlThongTin" runat="server">
                                                        <tr>
                                                            <td height="25">
                                                                Trang: </td>
                                                            <td>
                                                                <asp:TextBox ID="tbxMoTa" runat="server" Width="200px" Enabled="true"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                Đường dẫn:</td>
                                                            <td>
                                                                <asp:TextBox ID="tbxDuongDan" runat="server" Width="200px" Enabled="true"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        </asp:Panel>
                                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                            <ContentTemplate>
                                                                <asp:Panel ID="pnlCheckBoxList" runat="server">
                                                                <tr>
                                                                    <td>
                                                                        Roles:</td>
                                                                    <td>
                                                                        <asp:CheckBoxList ID="cblMaRole" runat="server">
                                                                        </asp:CheckBoxList>
                                                                    </td>
                                                                </tr>
                                                                </asp:Panel>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                                            <ContentTemplate>
                                                                <asp:Panel ID="pnlCheckBoxList2" runat="server" Visible="False">
                                                                    <tr>
                                                                        <td height="25">
                                                                            Tên role:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="tbxTenRoleMoi" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Button ID="btnThem" runat="server" Text="Thêm role mới" onclick="btnThem_Click" CssClass="button"></asp:Button>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Button class="button" ID="btnDel" runat="server" Text="Xóa" onclick="btnDel_Click"></asp:Button>
                                                                        </td>
                                                                    </tr>  
                                                                </asp:Panel>
                                                      
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25" colspan="2">
                                                                <asp:Button ID="btnCapNhat" runat="server" class="button" 
                                                                    onclick="btnCapNhat_Click" Text="Cập nhật" Visible="False" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25" colspan="2">
                                                                <sbc:sbcMsgBox ID="sbcMsgBox4" runat="server" UseJQuery="True" />
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </ContentTemplate>
                           <Triggers>    
                                <asp:PostBackTrigger ControlID="btnThem" />
                                 <asp:PostBackTrigger ControlID="btnCapNhat" />
                                 <asp:PostBackTrigger ControlID="btnDel" />
                           </Triggers>

                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
